13dcb93ec44171a179cce5e83b2849d83a3ee95e,platform-api/src/com/intellij/openapi/ui/ComponentWithBrowseButton.java,BrowseFolderActionListener,getInitialFile,#,196
Before Change
protected VirtualFile getInitialFile() {
String directoryName = getComponentText();
if (directoryName.length() == 0) return null;
return LocalFileSystem.getInstance().findFileByPath(directoryName.replace(File.separatorChar, '/'));
}
protected String getComponentText() {
After Change
String directoryName = getComponentText();
if (directoryName.length() == 0) return null;
directoryName = directoryName.replace(File.separatorChar, '/');
VirtualFile path = LocalFileSystem.getInstance().findFileByPath(directoryName);
while (path == null && directoryName.length() > 0) {
int pos = directoryName.lastIndexOf('/');
if (pos <= 0) break;
directoryName = directoryName.substring(0, pos-1);